package com.qys.training.base.enumerate;

/**
 * 业务代码枚举
 */
public enum BizCodeEnum {

    SUCCESS("SUCCESS","操作成功"),
    ERROR("ERROR","操作失败"),
    UNKNOWN_ERROR("UNKNOWN_ERROR","未知异常"),
    USERNAME_ALREADY_EXISTS("USERNAME_ALREADY_EXISTS","用户名已存在"),
    USER_DOES_NOT_EXIST("USER_DOES_NOT_EXIST","用户不存在"),
    FILE_FORMAT_NOT_SUPPORTED("FILE_FORMAT_NOT_SUPPORTED","文件格式不支持，目前只支持pdf文件"),
    FILE_DOES_NOT_EXIST("FILE_DOES_NOT_EXIST","文件不存在"),
    FILE_DELETION_FAILED("FILE_DELETION_FAILED","文件删除失败"),
    CONFIGURATION_ITEM_DOES_NOT_EXIST("CONFIGURATION_ITEM_DOES_NOT_EXIST","配置项不存在")
    ;

    private String code;
    private String description;

    BizCodeEnum(String code,String description){
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
